//
//  YTDriverAuthSuccessViewController.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/5/22.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTDriverAuthSuccessViewController.h"

@interface YTDriverAuthSuccessViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *userAvatarImage;
@property (weak, nonatomic) IBOutlet UILabel *userNameText;
@property (weak, nonatomic) IBOutlet UILabel *identifierNumText;
@end

@implementation YTDriverAuthSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    YTProfileModel *model = [YTUtilityManager manager].userModel;
    [_userAvatarImage yy_setImageWithURL:[NSURL URLWithString:model.userFace]
                             placeholder:[UIImage imageNamed:@"profile_avatar"]
                                 options:YYWebImageOptionShowNetworkActivity
                              completion:nil];
    _userNameText.text = model.userName;
    _identifierNumText.text = [NSString stringWithFormat:@"当地证件号: %@****%@", [model.idCard substringToIndex:1], [model.idCard substringFromIndex:model.idCard.length - 1]];
}

@end
